luci-base: validation.js: optionally support negative prefixes
authorJo-Philipp Wich <[email protected]>
Mon, 1 Mar 2021 14:16:14 +0000 (15:16 +0100)
committerJo-Philipp Wich <[email protected]>
Mon, 1 Mar 2021 14:19:06 +0000 (15:19 +0100)
commitbd39e6abaf37f27ae47c62633799d4e97eeb5589
treeb2c9d7f537c4cb45c7eed71175fb79327200758e
parent3d31dfc2b4a069a2a8ba29ee281a009da02ec5d7
luci-base: validation.js: optionally support negative prefixes

Support negative prefix length in the `cidr`, `cidr4`, `cidr6`, `ipmask`,
`ipmask4` and `ipmask6` data types when an optional truish flag is passed
to the datatype name.

Ref: #4812
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit cd06e708d8d8037486b77dab3389ca91a88f2dd0)
modules/luci-base/htdocs/luci-static/resources/validation.js